package com.woniuxy.service.impl;

import com.woniuxy.model.PawnShop;
import com.woniuxy.model.PawnShopWhRel;
import com.woniuxy.dao.PawnShopWhRelDao;
import com.woniuxy.service.PawnShopWhRelService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniuxy.utils.Result;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author hujianying
 * @since 2022-03-23
 */
@Service
public class PawnShopWhRelServiceImpl extends ServiceImpl<PawnShopWhRelDao, PawnShopWhRel> implements PawnShopWhRelService {

    @Resource
    private PawnShopWhRelDao pawnShopWhRelDao;

    @Override
    public Result getShopByWhCode(String whCode) {
        List<PawnShop> shopByWhCode = pawnShopWhRelDao.findShopByWhCode(whCode);
        return Result.success(200,"查询成功",shopByWhCode);
    }
}
